import Qt 4.7

Item {
    id: container
    width: parent.width
    height: parent.height

    signal showEventsList
    signal showAuthorization

    Button {
        id: btnAuthorize
        text: "click and show\nauthorization dialog"
        anchors.top: parent.top
        anchors.topMargin: 10
        anchors.left: parent.left
        anchors.leftMargin: 10

        width: 160
        height: 100
        onClicked: { container.showAuthorization() }
    }

    Button {
        id: btnEventsList
        text: "Events List"
        anchors.top: parent.top
        anchors.topMargin: 10
        anchors.left: btnAuthorize.right
        anchors.leftMargin: 10

        width: 160
        height: 100
        onClicked: { container.showEventsList() }
    }

    Button {
        id: btnQuit
        text: "Quit"
        anchors.top: btnAuthorize.bottom
        anchors.topMargin: 10
        anchors.left: parent.left
        anchors.leftMargin: 10

        width: 160
        height: 100
        onClicked: { Qt.quit() }
    }

    // Debug Info
    Text {
        text: "memberId:" + memberId
        anchors.left: parent.left
        anchors.top : btnQuit.bottom
        color: "white"
        width: 200
        height: 20
    }
}
